import request from '@/utils/request'

// 查询维修单信息列表
export function listMaintenance_order_info(query) {
  return request({
    url: '/system/maintenance_order_info/list',
    method: 'get',
    params: query
  })
}

// 查询维修单信息详细
export function getMaintenance_order_info(maintenanceOrderId) {
  return request({
    url: '/system/maintenance_order_info/' + maintenanceOrderId,
    method: 'get'
  })
}

// 新增维修单信息
export function addMaintenance_order_info(data) {
  return request({
    url: '/system/maintenance_order_info',
    method: 'post',
    data: data
  })
}

// 新增维修单信息
export function addMaintenance_order_info_Batch(data_list) {
  return request({
    url: '/system/maintenance_order_info/addMaintenance_order_info_Batch',
    method: 'post',
    data: data_list
  })
}


// 修改维修单信息
export function updateMaintenance_order_info(data) {
  return request({
    url: '/system/maintenance_order_info',
    method: 'put',
    data: data
  })
}

// 删除维修单信息
export function delMaintenance_order_info(maintenanceOrderId) {
  return request({
    url: '/system/maintenance_order_info/' + maintenanceOrderId,
    method: 'delete'
  })
}
